package a.h;

import a.i.u;

import javax.swing.*;
import javax.swing.plaf.basic.BasicComboBoxEditor;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableModel;
import java.awt.*;
import java.awt.event.ItemListener;
import java.awt.event.KeyEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

public class cd
  implements jb
{
  public static final String a;
  public static final String b;
  public static final String c = "TableEditorFactory.tableEditor";
  public static final String d = "TableEditorFactory.tableRenderer";
  public static final String e = "TableEditorFactory.stringRepresentation";
  public static final String f;
  public static final String g;
  public static final String h;
  static final String i = "TableEditorFactory.asPopUp";
  private static final Locale j;
  private static WeakReference k = new WeakReference(new v_());
  private static WeakReference l;
  private static WeakReference m = new WeakReference(p());
  private static WeakReference n = new WeakReference(new ab_());
  private static WeakReference o = new WeakReference(t());
  private static WeakReference p = new WeakReference(new cb_(new ge(j)));
  private static WeakReference q = new WeakReference(new cb_(new ge(j)));
  private static WeakReference r = new WeakReference(x());
  private static WeakReference s = new WeakReference(new DefaultCellEditor(new JTextField()));
  private static WeakReference t = new WeakReference(new o_());
  private static WeakReference u = new WeakReference(new qd());
  private static WeakReference v = new WeakReference(new n_());
  private static WeakReference w = new WeakReference(new gb_(null));
  private static WeakReference x = new WeakReference(new fb_(null));
  private static final gb y = new gb();
  private static final Color z = ad.d();
  private ob A = null;
  private y_ B = new y_();
  private ub C = new gb();
  private boolean D = true;
  private boolean E = true;
  private z_ F = new z_();
  static Class G;
  static Class H;
  static Class I;
  static Class J;
  public static int K;
  
  static void a(JComboBox paramJComboBox)
  {
    ComboBoxEditor localComboBoxEditor = paramJComboBox.getEditor();
    if (localComboBoxEditor.getClass().getName().indexOf("AquaComboBoxEditor") > -1) {
      paramJComboBox.setEditor(new BasicComboBoxEditor());
    }
  }
  
  public ub b()
  {
    return this.C;
  }
  
  public void a(ub paramub)
  {
    this.C = paramub;
  }
  
  public void a(dc paramdc, ib paramib)
  {
    a(paramdc, null, paramib);
  }
  
  public void a(dc paramdc, Map paramMap, ib paramib)
  {
    int i1 = ec.t;
    if ((i1 != 0) || ((paramib instanceof db)))
    {
      db localdb = (db)paramib;
      if (i1 == 0)
      {
        if (a() == null) {
          a(paramdc.k());
        }
      }
      else {
        try
        {
          localdb.a(paramdc, paramMap, this);
        }
        finally
        {
          a(null);
        }
      }
      localdb.a(paramdc, paramMap, this);
      localdb.a(c());
      localdb.b(d());
      if (!ec.s) {}
    }
    else
    {
      throw new IllegalArgumentException("Invalid editor type");
    }
  }
  
  public boolean c()
  {
    return this.D;
  }
  
  public void a(boolean paramBoolean)
  {
    this.D = paramBoolean;
  }
  
  public boolean d()
  {
    return this.E;
  }
  
  public void b(boolean paramBoolean)
  {
    this.E = paramBoolean;
  }
  
  public ib a(dc paramdc)
  {
    return a(paramdc, null);
  }
  
  public ib a(dc paramdc, Map paramMap)
  {
    db localdb;
    if ((ec.t != 0) || (a() == null))
    {
      a(paramdc.k());
      try
      {
        localdb = new db(paramdc, this, paramMap);
      }
      finally
      {
        a(null);
      }
    }
    else
    {
      localdb = new db(paramdc, this, paramMap);
    }
    localdb.a(c());
    localdb.b(d());
    paramdc.c(localdb);
    return localdb;
  }
  
  protected TableCellEditor a(ec paramec)
  {
    int i1 = ec.t;
    if (i1 == 0) {
      if ((paramec instanceof hc)) {
        return m();
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof ic))
      {
        if (Boolean.TRUE.equals(paramec.c("ColorOptionItem.ATTRIBUTE_ALLOW_TEXT_INPUT"))) {
          return new w_((ic)paramec, a());
        }
        return new x_((ic)paramec, a());
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof kc)) {
        return new bb_((kc)paramec, a());
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof rc)) {
        return n();
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof nc))
      {
        if (i1 == 0) {
          if (Boolean.TRUE.equals(paramec.c(nc.A))) {
            return r();
          }
        }
        if ((i1 != 0) || (((paramec.c(nc.y) instanceof Integer)) || ((paramec.c(nc.z) instanceof Integer)))) {
          return q();
        }
        return o();
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof jc))
      {
        if (i1 == 0) {
          if (Boolean.TRUE.equals(paramec.c(jc.B))) {
            return w();
          }
        }
        if ((i1 != 0) || (((paramec.c(jc.y) instanceof Double)) || ((paramec.c(jc.z) instanceof Double)))) {
          return v();
        }
        return u();
      }
    }
    if ((i1 != 0) || ((paramec instanceof tc)))
    {
      Object localObject = paramec.c(tc.E);
      if (((i1 != 0) || ((localObject instanceof Integer))) && (((Integer)localObject).intValue() > 1)) {
        return this.F;
      }
      return y();
    }
    return this.B;
  }
  
  protected TableCellRenderer b(ec paramec)
  {
    int i1 = ec.t;
    if (i1 == 0) {
      if ((paramec instanceof hc)) {
        return g();
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof ic)) {
        return h();
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof jc)) {
        return k();
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof kc)) {
        return new l_((kc)paramec, a());
      }
    }
    if ((paramec instanceof rc)) {
      return j();
    }
    return l();
  }
  
  public ob a()
  {
    return this.A;
  }
  
  public void a(ob paramob)
  {
    this.A = paramob;
  }
  
  private ub e()
  {
    if (ec.t == 0) {}
    return this.C != null ? this.C : y;
  }
  
  public static u_ f()
  {
    return new u_();
  }
  
  private static o_ g()
  {
    Object localObject = t.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        o_ localo_ = new o_();
        t = new WeakReference(localo_);
        return localo_;
      }
    }
    return (o_)localObject;
  }
  
  private static qd h()
  {
    Object localObject = u.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        qd localqd = new qd();
        u = new WeakReference(localqd);
        return localqd;
      }
    }
    return (qd)localObject;
  }
  
  private static n_ j()
  {
    Object localObject = v.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        n_ localn_ = new n_();
        v = new WeakReference(localn_);
        return localn_;
      }
    }
    return (n_)localObject;
  }
  
  private static gb_ k()
  {
    Object localObject = w.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        gb_ localgb_ = new gb_(null);
        w = new WeakReference(localgb_);
        return localgb_;
      }
    }
    return (gb_)localObject;
  }
  
  private static fb_ l()
  {
    Object localObject = x.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        fb_ localfb_ = new fb_(null);
        x = new WeakReference(localfb_);
        return localfb_;
      }
    }
    return (fb_)localObject;
  }
  
  private static DefaultCellEditor m()
  {
    Object localObject = l.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        nd localnd = new nd();
        l = new WeakReference(localnd);
        return localnd;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  private static v_ n()
  {
    Object localObject = k.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        v_ localv_ = new v_();
        k = new WeakReference(localv_);
        return localv_;
      }
    }
    return (v_)localObject;
  }
  
  private static DefaultCellEditor o()
  {
    Object localObject = m.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        DefaultCellEditor localDefaultCellEditor = p();
        m = new WeakReference(localDefaultCellEditor);
        return localDefaultCellEditor;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  private static DefaultCellEditor p()
  {
    JTextField localJTextField = new JTextField();
    localJTextField.setDocument(new fe());
    return new DefaultCellEditor(localJTextField);
  }
  
  private static DefaultCellEditor q()
  {
    Object localObject = n.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        ab_ localab_ = new ab_();
        n = new WeakReference(localab_);
        return localab_;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  private static DefaultCellEditor r()
  {
    Object localObject = o.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        DefaultCellEditor localDefaultCellEditor = t();
        o = new WeakReference(localDefaultCellEditor);
        return localDefaultCellEditor;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  private static DefaultCellEditor t()
  {
    fe localfe = new fe();
    localfe.a(true);
    JTextField localJTextField = new JTextField();
    localJTextField.setDocument(localfe);
    return new DefaultCellEditor(localJTextField);
  }
  
  private static DefaultCellEditor u()
  {
    Object localObject = p.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        cb_ localcb_ = new cb_(new ge(j));
        p = new WeakReference(localcb_);
        return localcb_;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  private static DefaultCellEditor v()
  {
    Object localObject = q.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        cb_ localcb_ = new cb_(new ge(j));
        q = new WeakReference(localcb_);
        return localcb_;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  private static DefaultCellEditor w()
  {
    Object localObject = r.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        DefaultCellEditor localDefaultCellEditor = x();
        r = new WeakReference(localDefaultCellEditor);
        return localDefaultCellEditor;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  private static DefaultCellEditor x()
  {
    ge localge = new ge(j);
    localge.a(true);
    return new cb_(localge);
  }
  
  private static DefaultCellEditor y()
  {
    Object localObject = s.get();
    if (ec.t == 0) {
      if (localObject == null)
      {
        DefaultCellEditor localDefaultCellEditor = new DefaultCellEditor(new JTextField());
        s = new WeakReference(localDefaultCellEditor);
        return localDefaultCellEditor;
      }
    }
    return (DefaultCellEditor)localObject;
  }
  
  static Class a(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  static
  {
    a = "TableEditor.infoPosition";
    b = "TableEditor.theme";
    f = "TableEditor.useItemNameAsTooltipFallback";
    g = "TableEditorFactory.editorLocation";
    h = "TableEditorFactory.editorLocationReferenceComponent";
    j = Locale.getDefault();
    l = new WeakReference(new nd());
  }
  
  static abstract interface m_
  {
    public abstract void a(int paramInt1, int paramInt2);
    
    public abstract void a();
  }
  
  private static class eb_
    extends JPanel
    implements cd.m_
  {
    private AbstractButton a;
    private Icon b;
    private JTextField d;
    
    eb_()
    {
      this(new JTextField(), new JButton(), null);
    }
    
    eb_(JTextField paramJTextField, AbstractButton paramAbstractButton, Icon paramIcon)
    {
      super();
      this.a = paramAbstractButton;
      this.b = paramIcon;
      this.d = paramJTextField;
      b();
    }
    
    void b()
    {
      add(this.d, "Center");
      if (this.b != null)
      {
        JLabel localJLabel = new JLabel(this.b);
        localJLabel.setBorder(BorderFactory.createEmptyBorder(0, 1, 0, 3));
        add(localJLabel, "West");
      }
      if (this.a != null)
      {
        this.a.setText("...");
        this.a.setMargin(new Insets(0, 0, 0, 0));
        this.a.setPreferredSize(new Dimension(this.a.getPreferredSize().width, this.d.getPreferredSize().height));
        this.a.setFocusable(false);
        add(this.a, "East");
      }
      setOpaque(false);
    }
    
    public JTextField d()
    {
      return this.d;
    }
    
    public AbstractButton f()
    {
      return this.a;
    }
    
    public void removeNotify()
    {
      int i = ec.t;
      if (i == 0) {
        if (!this.a.hasFocus())
        {
          if (i != 0) {
            break label50;
          }
          if (!this.d.hasFocus())
          {
            if (i != 0) {
              break label64;
            }
            if (!hasFocus()) {
              break label51;
            }
          }
        }
      }
      label50:
      getParent().requestFocusInWindow();
      label51:
      this.a.setFocusable(false);
      super.removeNotify();
      label64:
      this.a.setFocusable(true);
    }
    
    protected boolean processKeyBinding(KeyStroke paramKeyStroke, KeyEvent paramKeyEvent, int paramInt, boolean paramBoolean)
    {
      int i = ec.t;
      if (((i == 0) && ((paramKeyEvent.getSource() != this.d) && (i != 0))) || (paramKeyEvent.getSource() != this.a))
      {
        KeyEvent localKeyEvent = new KeyEvent(this.d, paramKeyEvent.getID(), paramKeyEvent.getWhen(), paramKeyEvent.getModifiers(), paramKeyEvent.getKeyCode(), paramKeyEvent.getKeyChar(), paramKeyEvent.getKeyLocation());
        KeyboardFocusManager.getCurrentKeyboardFocusManager().redispatchEvent(this.d, localKeyEvent);
        return true;
      }
      return super.processKeyBinding(paramKeyStroke, paramKeyEvent, paramInt, paramBoolean);
    }
    
    public void requestFocus()
    {
      this.d.requestFocus();
    }
    
    public boolean requestFocusInWindow()
    {
      return this.d.requestFocusInWindow();
    }
    
    public void a(int paramInt1, int paramInt2)
    {
      this.d.select(paramInt1, paramInt2);
    }
    
    public void a()
    {
      this.d.selectAll();
    }
  }
  
  private static class cb_
    extends DefaultCellEditor
    implements cd.t_
  {
    private Number a;
    private tb b;
    private fd c;
    private ge d;
    
    public cb_(ge paramge)
    {
      super();
      JTextField localJTextField = (JTextField)this.editorComponent;
      localJTextField.setDocument(paramge);
      this.delegate = new cd.29(this, localJTextField);
      this.d = paramge;
      this.a = null;
      this.b = null;
      this.c = null;
    }
    
    public tb a()
    {
      return this.b;
    }
    
    public void a(tb paramtb)
    {
      int i = ec.t;
      boolean bool = ec.s;
      this.b = paramtb;
      ec localec = paramtb.k();
      Object localObject1 = localec.c(jc.y);
      Object localObject2 = localec.c(jc.z);
      BigDecimal localBigDecimal1;
      if ((localObject1 instanceof Double))
      {
        localBigDecimal1 = new BigDecimal(localObject1.toString());
        if (i != 0) {
          break label79;
        }
        if (!bool) {}
      }
      else
      {
        localBigDecimal1 = fd.a;
      }
      if ((localObject2 instanceof Double))
      {
        label79:
        if (i != 0) {
          break label109;
        }
        localBigDecimal2 = new BigDecimal(localObject2.toString());
        if (!bool) {
          break label111;
        }
      }
      label109:
      BigDecimal localBigDecimal2 = fd.b;
      label111:
      Locale localLocale = (Locale)localec.c(jc.C);
      this.c = new fd(localLocale, localBigDecimal1, localBigDecimal2);
      this.d.b(ge.a(localLocale));
    }
    
    public Object getCellEditorValue()
    {
      return this.a;
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      this.a = ((Number)paramObject);
      return super.getTableCellEditorComponent(paramJTable, paramObject, paramBoolean, paramInt1, paramInt2);
    }
    
    public boolean stopCellEditing()
    {
      int i = ec.t;
      String str = (String)super.getCellEditorValue();
      if (((i == 0) && (str == null)) || ((i != 0) || (str.length() == 0))) {
        return super.stopCellEditing();
      }
      try
      {
        this.a = this.c.a(str);
      }
      catch (NumberFormatException localNumberFormatException) {}
      return super.stopCellEditing();
    }
  }
  
  private static class ab_
    extends DefaultCellEditor
    implements cd.t_
  {
    private Number a;
    private tb b;
    private t c;
    
    public ab_()
    {
      super();
      ((JTextField)getComponent()).setDocument(new fe());
      this.a = null;
      this.b = null;
    }
    
    public tb a()
    {
      return this.b;
    }
    
    public void a(tb paramtb)
    {
      int i = ec.t;
      boolean bool = ec.s;
      this.b = paramtb;
      ec localec = paramtb.k();
      Object localObject1 = localec.c(nc.y);
      Object localObject2 = localec.c(nc.z);
      BigInteger localBigInteger1;
      if ((localObject1 instanceof Integer))
      {
        localBigInteger1 = new BigInteger(localObject1.toString());
        if (i != 0) {
          break label79;
        }
        if (!bool) {}
      }
      else
      {
        localBigInteger1 = t.a;
      }
      label79:
      BigInteger localBigInteger2;
      if ((localObject2 instanceof Integer))
      {
        localBigInteger2 = new BigInteger(localObject2.toString());
        if (i != 0) {
          return;
        }
        if (!bool) {}
      }
      else
      {
        localBigInteger2 = t.b;
      }
      this.c = new t(localBigInteger1, localBigInteger2);
    }
    
    public Object getCellEditorValue()
    {
      return this.a;
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      this.a = ((Number)paramObject);
      return super.getTableCellEditorComponent(paramJTable, paramObject, paramBoolean, paramInt1, paramInt2);
    }
    
    public boolean stopCellEditing()
    {
      int i = ec.t;
      String str = (String)super.getCellEditorValue();
      if (((i == 0) && (str == null)) || ((i != 0) || (str.length() == 0))) {
        return super.stopCellEditing();
      }
      try
      {
        this.a = this.c.a(str);
      }
      catch (NumberFormatException localNumberFormatException) {}
      return super.stopCellEditing();
    }
  }
  
  private static class v_
    extends AbstractCellEditor
    implements TableCellEditor, cd.t_
  {
    private cd.eb_ a = new cd.eb_();
    private a.i.jb b = new cd.p_(null);
    private tb c;
    WeakReference d;
    
    v_()
    {
      this.a.d().addActionListener(new cd.1(this));
      this.a.f().addActionListener(new cd.2(this));
    }
    
    String a(String paramString)
    {
      int i = ec.t;
      if (i == 0)
      {
        if (Boolean.TRUE.equals(a().k().c("FileOptionItem.prefixFileProtocol"))) {
          if (i != 0) {
            break label79;
          }
        }
      }
      else if (!paramString.startsWith("file://"))
      {
        if (i != 0) {
          break label79;
        }
        if (paramString.trim().length() > 0) {
          paramString = "file://" + paramString;
        }
      }
      label79:
      return paramString;
    }
    
    String b(String paramString)
    {
      int i = ec.t;
      if (i == 0)
      {
        if (Boolean.TRUE.equals(a().k().c("FileOptionItem.prefixFileProtocol"))) {
          if (i != 0) {
            break label52;
          }
        }
      }
      else if (paramString.startsWith("file://")) {
        paramString = paramString.substring(7);
      }
      label52:
      return paramString;
    }
    
    public tb a()
    {
      return this.c;
    }
    
    public void a(tb paramtb)
    {
      this.c = paramtb;
    }
    
    public Object getCellEditorValue()
    {
      return this.a.d().getText();
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      this.d = new WeakReference(paramJTable);
      this.a.d().setText(a(paramObject));
      if (i == 0)
      {
        if (c())
        {
          if (i != 0) {
            break label89;
          }
          if (this.a.d().isEditable()) {
            this.a.d().selectAll();
          }
        }
        paramJTable.repaint(paramJTable.getCellRect(paramInt1, paramInt2, false));
      }
      label89:
      return this.a;
    }
    
    private String a(Object paramObject)
    {
      int i = ec.t;
      if (i == 0) {}
      return this.b.a(paramObject, cd.J == null ? (cd.J = cd.a("java.lang.Object")) : (i != 0) || (paramObject != null) ? paramObject.getClass() : cd.J);
    }
    
    private JFileChooser b()
    {
      int i = ec.t;
      if ((i != 0) || (this.c != null))
      {
        localObject1 = this.c.k();
        Object localObject2 = ((ec)localObject1).c(rc.E);
        if ((i != 0) || ((localObject2 instanceof JFileChooser))) {
          return (JFileChooser)localObject2;
        }
      }
      Object localObject1 = new JFileChooser();
      ((JFileChooser)localObject1).setDialogType(0);
      return localObject1;
    }
    
    private void a(JFileChooser paramJFileChooser)
    {
      String str = this.a.d().getText();
      str = b(str);
      if (str.length() > 0)
      {
        File localFile = new File(str);
        if ((ec.t != 0) || (!localFile.isDirectory())) {
          localFile = localFile.getParentFile();
        }
        paramJFileChooser.setCurrentDirectory(localFile);
      }
    }
    
    private int b(JFileChooser paramJFileChooser)
    {
      Component localComponent = cd.r_.a(a().k(), (JTable)this.d.get(), this.a);
      if (ec.t == 0) {
        switch (paramJFileChooser.getDialogType())
        {
        case 0: 
          return paramJFileChooser.showOpenDialog(localComponent);
        case 1: 
          return paramJFileChooser.showSaveDialog(localComponent);
        case 2: 
          return paramJFileChooser.showDialog(localComponent, paramJFileChooser.getApproveButtonText());
        }
      }
      return paramJFileChooser.showOpenDialog(localComponent);
    }
    
    private boolean c()
    {
      ec localec = this.c.k();
      if (localec == null) {
        return false;
      }
      return Boolean.TRUE.equals(localec.c("ItemEditor.selectTextOnFocusGained"));
    }
  }
  
  private static class bb_
    extends DefaultCellEditor
    implements cd.t_
  {
    private tb a;
    private Object[] b;
    private ItemListener c;
    private final yb d;
    
    public bb_(kc paramkc, ob paramob)
    {
      this(paramkc, paramkc.b(), paramob);
    }
    
    protected bb_(ec paramec, Object[] paramArrayOfObject, ob paramob)
    {
      super();
      JComboBox localJComboBox = (JComboBox)getComponent();
      cd.a(localJComboBox);
      if (k == 0)
      {
        if (paramArrayOfObject != null)
        {
          int i = 0;
          do
          {
            if (i >= paramArrayOfObject.length) {
              break;
            }
            localJComboBox.addItem(paramArrayOfObject[i]);
            i++;
            if (k != 0) {
              break label107;
            }
            if (bool) {
              break label106;
            }
          } while (!bool);
        }
        this.d = new yb();
        if (k != 0) {}
      }
      else
      {
        localJComboBox.setRenderer(this.d);
      }
      label106:
      label107:
      int j = 0;
      do
      {
        if (j >= localJComboBox.getComponentCount()) {
          break;
        }
        Component localComponent = localJComboBox.getComponent(j);
        if (bool) {
          break label177;
        }
        if (k == 0)
        {
          if ((localComponent instanceof JComponent)) {
            ((JComponent)localComponent).setBorder(BorderFactory.createEmptyBorder());
          }
          j++;
        }
      } while (!bool);
      if (k == 0) {}
      label177:
      Object localObject = paramec.c(kc.z);
      if (k == 0)
      {
        if ((localObject instanceof ListCellRenderer)) {
          this.d.a((ListCellRenderer)localObject);
        }
      }
      else
      {
        if (k != 0) {
          break label249;
        }
        if (!bool) {
          break label230;
        }
      }
      this.d.a(new qb(paramec, paramob));
      label230:
      localObject = paramec.c(kc.y);
      if (k == 0)
      {
        if ((localObject instanceof ItemListener)) {
          label249:
          this.c = ((ItemListener)localObject);
        }
      }
      else {
        localJComboBox.addItemListener(this.c);
      }
    }
    
    public tb a()
    {
      return this.a;
    }
    
    public void a(tb paramtb)
    {
      this.a = paramtb;
      this.d.a(paramtb);
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      b();
      return super.getTableCellEditorComponent(paramJTable, paramObject, paramBoolean, paramInt1, paramInt2);
    }
    
    private void b()
    {
      int j = ec.t;
      boolean bool = ec.s;
      label139:
      label233:
      if (((j == 0) && ((this.a != null) && (j != 0))) || ((this.a instanceof w)))
      {
        JComboBox localJComboBox = (JComboBox)getComponent();
        Object[] arrayOfObject = ((w)this.a).b();
        if (j == 0) {
          if (nb.a(this.b, arrayOfObject))
          {
            localJComboBox.removeAllItems();
            if (arrayOfObject != null)
            {
              int i = 0;
              do
              {
                if (i >= arrayOfObject.length) {
                  break;
                }
                localJComboBox.addItem(arrayOfObject[i]);
                i++;
                if (j != 0) {
                  break label139;
                }
                if (bool) {
                  break label125;
                }
              } while (!bool);
            }
            if (j != 0) {
              break label126;
            }
            this.b = arrayOfObject;
          }
        }
        label125:
        label126:
        if ((j != 0) || (this.a.m()))
        {
          kc localkc = (kc)this.a.k();
          Object localObject = localkc.c(kc.y);
          if (j == 0)
          {
            if ((localObject instanceof ItemListener))
            {
              if (j != 0) {
                break label233;
              }
              if (nb.a(this.c, localObject))
              {
                localJComboBox.removeItemListener(this.c);
                this.c = ((ItemListener)localObject);
                localJComboBox.addItemListener(this.c);
              }
            }
            localObject = localkc.c(kc.z);
          }
          if ((localObject instanceof ListCellRenderer))
          {
            ListCellRenderer localListCellRenderer = localJComboBox.getRenderer();
            if (nb.a(localListCellRenderer, localObject)) {
              localJComboBox.setRenderer((ListCellRenderer)localObject);
            }
          }
        }
      }
    }
  }
  
  private static final class q_
    implements wd.e_
  {
    private final ec a;
    private final JComponent c;
    
    q_(ec paramec, JComponent paramJComponent)
    {
      this.a = paramec;
      this.c = paramJComponent;
    }
    
    public void a(Component paramComponent, JDialog paramJDialog)
    {
      cd.r_.c(this.a, this.c, paramJDialog);
    }
  }
  
  private static class x_
    extends AbstractCellEditor
    implements TableCellEditor, lb.c_
  {
    private ic a;
    private DefaultTableCellRenderer b;
    private ab c;
    private Runnable d;
    private WeakReference e;
    private final String f;
    private int g;
    private int i;
    private ob k;
    private boolean l = false;
    
    public x_(ic paramic, ob paramob)
    {
      this.a = paramic;
      if (j == 0)
      {
        this.k = paramob;
        if (paramob == null)
        {
          this.f = paramic.d();
          if (j != 0) {
            return;
          }
          if (!ec.s) {
            break label63;
          }
        }
      }
      this.f = paramob.b(nb.a(paramic));
      label63:
      this.b = new DefaultTableCellRenderer();
      this.c = new ab(ec.a);
      this.d = new cd.10(this);
    }
    
    public Object getCellEditorValue()
    {
      return this.c.a();
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      this.e = new WeakReference(paramJTable);
      this.g = paramInt1;
      this.i = paramInt2;
      Color localColor = nb.b(paramObject);
      this.c.a(localColor);
      this.b.getTableCellRendererComponent(paramJTable, bc.a(localColor, ic.b(this.a), ic.a(this.a)), paramBoolean, false, paramInt1, paramInt2);
      this.b.setIcon(this.c);
      SwingUtilities.invokeLater(this.d);
      return this.b;
    }
    
    void b()
    {
      int j = ec.t;
      JTable localJTable = (JTable)this.e.get();
      localJTable.putClientProperty(wd.a, new cd.q_(this.a, localJTable));
      if (((j == 0) && (this.a.r())) || ((j != 0) || ((this.a.b()) || (this.a.q()))))
      {
        localObject = new lb(this.a, localJTable, this.k);
        ((lb)localObject).a(this);
        if (j != 0) {
          break label161;
        }
        Rectangle localRectangle = localJTable.getCellRect(this.g, this.i, true);
        this.l = true;
        ((lb)localObject).a((Color)getCellEditorValue());
        ((lb)localObject).c().show(localJTable, localRectangle.x, localRectangle.y + localRectangle.height);
        if (!ec.s) {
          return;
        }
      }
      label161:
      Object localObject = wd.a(localJTable, this.f, this.c.a(), ic.b(this.a));
      if (j == 0)
      {
        if (localObject != null) {
          this.c.a((Color)localObject);
        }
        stopCellEditing();
      }
      c();
    }
    
    void a(JPopupMenu paramJPopupMenu, Color paramColor)
    {
      int j = ec.t;
      this.c.a(paramColor);
      this.l = false;
      if (j == 0)
      {
        if (paramJPopupMenu != null) {
          paramJPopupMenu.setVisible(false);
        }
        stopCellEditing();
        c();
      }
      JTable localJTable = (JTable)this.e.get();
      if (((j == 0) && ((localJTable != null) && (j != 0))) || (!a(localJTable.getValueAt(this.g, this.i), paramColor))) {
        localJTable.setValueAt(paramColor, this.g, this.i);
      }
    }
    
    private static boolean a(Object paramObject1, Object paramObject2)
    {
      if (ec.t == 0) {
        if ((paramObject1 instanceof tb)) {
          return ((tb)paramObject1).n() == paramObject2;
        }
      }
      return paramObject1 == paramObject2;
    }
    
    private void c()
    {
      int j = ec.t;
      JTable localJTable = (JTable)this.e.get();
      if (((j != 0) || (localJTable != null)) && ((j != 0) || (!localJTable.hasFocus()))) {
        localJTable.requestFocus();
      }
    }
    
    public void a(JPopupMenu paramJPopupMenu, Object paramObject)
    {
      a(paramJPopupMenu, (Color)paramObject);
    }
    
    public void a()
    {
      this.l = false;
      cancelCellEditing();
      c();
    }
    
    public boolean stopCellEditing()
    {
      if (ec.t == 0) {
        if (!this.l) {
          return super.stopCellEditing();
        }
      }
      return false;
    }
    
    public void cancelCellEditing()
    {
      this.l = false;
      super.cancelCellEditing();
    }
  }
  
  private static class w_
    extends AbstractCellEditor
    implements TableCellEditor
  {
    private final h a;
    private WeakReference b = new WeakReference(null);
    private int c;
    private int d;
    private boolean e;
    
    w_(ic paramic, ob paramob)
    {
      bc localbc = j.a(paramic);
      HashMap localHashMap = new HashMap();
      localHashMap.put(pc.z, localbc);
      if ((ec.t != 0) || (Boolean.TRUE.equals(paramic.c("ColorOptionItem.ATTRIBUTE_USE_ICON_AS_TRIGGER")))) {
        localHashMap.put("JTextFieldColorEditor.useIconAsTrigger", Boolean.TRUE);
      }
      j.c_ localc_ = new j.c_(localbc, false);
      localc_.addActionListener(new cd.9(this));
      localHashMap.put("JTextFieldColorEditor.buttonIsFocusable", Boolean.FALSE);
      localHashMap.put("JTextFieldColorEditor.showIcon", Boolean.TRUE);
      this.a = new a_(paramic, paramob, localHashMap, localc_);
    }
    
    public Object getCellEditorValue()
    {
      return this.a.n();
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      this.b = new WeakReference(paramJTable);
      this.c = paramInt1;
      this.d = paramInt2;
      this.a.a(paramObject);
      if (i == 0)
      {
        if (a())
        {
          JTextField localJTextField = (JTextField)this.a.p;
          if (i != 0) {
            break label99;
          }
          if (localJTextField.isEditable()) {
            localJTextField.selectAll();
          }
        }
        paramJTable.repaint(paramJTable.getCellRect(paramInt1, paramInt2, false));
      }
      label99:
      return this.a.f();
    }
    
    private boolean a()
    {
      ec localec = this.a.k();
      if (localec != null) {
        if (ec.t != 0) {}
      }
      return Boolean.TRUE.equals(localec.c("ItemEditor.selectTextOnFocusGained"));
    }
    
    public boolean stopCellEditing()
    {
      int i = ec.t;
      if ((i != 0) || (!this.e)) {
        if (i != 0) {}
      }
      return super.stopCellEditing();
    }
    
    public void cancelCellEditing()
    {
      this.e = false;
      super.cancelCellEditing();
    }
    
    void c()
    {
      int i = ec.t;
      JTable localJTable = (JTable)this.b.get();
      if (((i != 0) || (localJTable != null)) && ((i != 0) || (!localJTable.hasFocus()))) {
        localJTable.requestFocus();
      }
    }
    
    static String a(Color paramColor, ec paramec)
    {
      return bc.a(paramColor, ic.b(paramec), ic.a(paramec));
    }
    
    private class a_
      extends j
    {
      a_(ic paramic, ob paramob, Map paramMap, j.c_ paramc_)
      {
        super(paramob, paramMap, paramc_);
      }
      
      public void a(JPopupMenu paramJPopupMenu, Object paramObject)
      {
        super.a(paramJPopupMenu, paramObject);
        cd.w_.this.e = false;
        cd.w_.this.stopCellEditing();
        cd.w_.this.c();
      }
      
      public void a()
      {
        cd.w_.this.cancelCellEditing();
        cd.w_.this.c();
      }
      
      void j()
      {
        c((JTable)cd.w_.this.b.get());
      }
      
      void c(JComponent paramJComponent)
      {
        b(paramJComponent);
        Color localColor = wd.a(paramJComponent, "", (Color)n(), ic.b(this.i));
        if (ec.t == 0)
        {
          if (localColor != null) {
            a(localColor);
          }
          cd.w_.this.stopCellEditing();
          cd.w_.this.c();
        }
      }
      
      void f(boolean paramBoolean)
      {
        a((JTable)cd.w_.this.b.get(), paramBoolean);
      }
      
      void a(JComponent paramJComponent, boolean paramBoolean)
      {
        b(paramJComponent);
        cd.w_.this.e = true;
        lb locallb = a(paramJComponent);
        JPopupMenu localJPopupMenu = locallb.c();
        Rectangle localRectangle = ((JTable)paramJComponent).getCellRect(cd.w_.this.c, cd.w_.this.d, true);
        if (ec.t == 0) {}
        int i = paramBoolean ? 0 : localRectangle.width - localJPopupMenu.getPreferredSize().width;
        localJPopupMenu.show(paramJComponent, localRectangle.x + i, localRectangle.y + localRectangle.height);
      }
      
      private void b(JComponent paramJComponent)
      {
        paramJComponent.putClientProperty(wd.a, new cd.q_(this.i, paramJComponent));
      }
    }
  }
  
  private static class n_
    implements TableCellRenderer, cd.t_
  {
    private de a = new de();
    private a.i.jb b = new cd.p_(null);
    private tb c;
    
    public tb a()
    {
      return this.c;
    }
    
    public void a(tb paramtb)
    {
      this.c = paramtb;
    }
    
    public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      boolean bool = this.c.p();
      String str = a(paramObject);
      this.a.getTableCellRendererComponent(paramJTable, !bool ? str : "", paramBoolean1, paramBoolean2, paramInt1, paramInt2);
      if (i == 0)
      {
        if (str.trim().length() > 0) {
          this.a.setToolTipText(str);
        }
      }
      else
      {
        if (i != 0) {
          break label96;
        }
        if (!ec.s) {
          break label95;
        }
      }
      this.a.setToolTipText(null);
      label95:
      if (!paramBoolean1) {
        label96:
        this.a.setBackground(!bool ? paramJTable.getBackground() : cd.z);
      }
      this.a.setEnabled(this.c.o());
      return this.a;
    }
    
    private String a(Object paramObject)
    {
      int i = ec.t;
      if (i == 0) {}
      return this.b.a(paramObject, cd.J == null ? (cd.J = cd.a("java.lang.Object")) : (i != 0) || (paramObject != null) ? paramObject.getClass() : cd.J);
    }
  }
  
  private static class p_
    implements a.i.jb
  {
    private p_() {}
    
    public String a(Object paramObject, Class paramClass)
      throws IllegalArgumentException
    {
      int i = ec.t;
      if (i == 0) {
        if ((paramObject instanceof File)) {
          try
          {
            return ((File)paramObject).getCanonicalPath();
          }
          catch (IOException localIOException)
          {
            return ((File)paramObject).getAbsolutePath();
          }
        }
      }
      if ((i != 0) || ((paramObject instanceof String))) {
        return (String)paramObject;
      }
      return "";
    }
    
    public Object a(String paramString, Class paramClass)
      throws IllegalArgumentException
    {
      throw new UnsupportedOperationException();
    }
    
    p_(cd.0 param0)
    {
      this();
    }
  }
  
  private static class l_
    implements TableCellRenderer, cd.t_
  {
    private tb a;
    private final yb b = new yb();
    private final DefaultTableCellRenderer c;
    
    public l_(kc paramkc, ob paramob)
    {
      Object localObject = paramkc.c(kc.z);
      if (i == 0)
      {
        if ((localObject instanceof TableCellRenderer))
        {
          this.b.a((TableCellRenderer)localObject);
          if (i != 0) {
            return;
          }
        }
      }
      else {
        if (!ec.s) {
          break label78;
        }
      }
      this.b.a(new qb(paramkc, paramob));
      label78:
      this.c = new DefaultTableCellRenderer();
      this.c.setText("");
      this.c.setIcon(null);
      this.c.setBackground(ad.d());
      new a_(paramkc, this);
    }
    
    public tb a()
    {
      return this.a;
    }
    
    public void a(tb paramtb)
    {
      this.a = paramtb;
      this.b.a(paramtb);
    }
    
    public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      if (i == 0) {
        if (this.a != null)
        {
          if (i != 0) {
            break label40;
          }
          if (this.a.p()) {
            return this.c;
          }
        }
      }
      label40:
      return this.b.getTableCellRendererComponent(paramJTable, paramObject, paramBoolean1, paramBoolean2, paramInt1, paramInt2);
    }
    
    private static final class a_
      implements PropertyChangeListener
    {
      private final WeakReference a;
      
      public a_(ec paramec, cd.l_ paraml_)
      {
        this.a = new WeakReference(paraml_);
        paramec.c(kc.z, this);
      }
      
      public void propertyChange(PropertyChangeEvent paramPropertyChangeEvent)
      {
        int i = ec.t;
        cd.l_ locall_ = (cd.l_)this.a.get();
        if ((i != 0) || (locall_ == null))
        {
          Object localObject = paramPropertyChangeEvent.getSource();
          if (i == 0)
          {
            if ((localObject instanceof xc)) {
              ((xc)localObject).d(kc.z, this);
            }
          }
          else if (!ec.s) {}
        }
        else
        {
          a(locall_, paramPropertyChangeEvent);
        }
      }
      
      private void a(cd.l_ paraml_, PropertyChangeEvent paramPropertyChangeEvent)
      {
        int i = ec.t;
        tb localtb = paraml_.a();
        if (((i != 0) || (localtb != null)) && ((i != 0) || (localtb.m())))
        {
          Object localObject = paramPropertyChangeEvent.getNewValue();
          if ((localObject instanceof TableCellRenderer)) {
            paraml_.b.a((TableCellRenderer)localObject);
          }
        }
      }
    }
  }
  
  private static class o_
    implements TableCellRenderer, cd.t_
  {
    private JCheckBox a = new JCheckBox();
    private tb b;
    
    public tb a()
    {
      return this.b;
    }
    
    public void a(tb paramtb)
    {
      this.b = paramtb;
    }
    
    public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      boolean bool = ec.s;
      if (i == 0)
      {
        if (paramBoolean1)
        {
          this.a.setForeground(paramJTable.getSelectionForeground());
          this.a.setBackground(paramJTable.getSelectionBackground());
          if (i != 0) {
            break label151;
          }
          if (!bool) {
            break label121;
          }
        }
        if (i != 0) {}
      }
      else
      {
        if (this.b.p())
        {
          this.a.setForeground(paramJTable.getForeground());
          this.a.setBackground(cd.z);
          if (i != 0) {
            break label151;
          }
          if (!bool) {
            break label121;
          }
        }
        this.a.setForeground(paramJTable.getForeground());
      }
      this.a.setBackground(paramJTable.getBackground());
      label121:
      this.a.setSelected(nb.a(paramObject).booleanValue());
      this.a.setEnabled(this.b.o());
      label151:
      return this.a;
    }
  }
  
  private static final class gb_
    extends cd.fb_
  {
    private fd b;
    
    private gb_()
    {
      super();
    }
    
    public void a(tb paramtb)
    {
      int i = ec.t;
      boolean bool = ec.s;
      super.a(paramtb);
      ec localec = paramtb.k();
      Object localObject1 = localec.c(jc.y);
      Object localObject2 = localec.c(jc.z);
      BigDecimal localBigDecimal1;
      if ((localObject1 instanceof Double))
      {
        localBigDecimal1 = new BigDecimal(localObject1.toString());
        if (i != 0) {
          break label79;
        }
        if (!bool) {}
      }
      else
      {
        localBigDecimal1 = fd.a;
      }
      if ((localObject2 instanceof Double))
      {
        label79:
        if (i != 0) {
          break label109;
        }
        localBigDecimal2 = new BigDecimal(localObject2.toString());
        if (!bool) {
          break label111;
        }
      }
      label109:
      BigDecimal localBigDecimal2 = fd.b;
      label111:
      Locale localLocale = (Locale)localec.c(jc.C);
      this.b = new fd(localLocale, localBigDecimal1, localBigDecimal2);
    }
    
    String a(Object paramObject)
    {
      int i = ec.t;
      if (i == 0) {}
      String str = this.b.a(paramObject, cd.I == null ? (cd.I = cd.a("java.lang.Double")) : cd.I);
      if (i == 0) {}
      return str != null ? str : "";
    }
    
    gb_(cd.0 param0)
    {
      this();
    }
  }
  
  private static class fb_
    extends de
    implements cd.t_
  {
    private tb a;
    
    private fb_() {}
    
    public tb a()
    {
      return this.a;
    }
    
    public void a(tb paramtb)
    {
      this.a = paramtb;
    }
    
    public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
    {
      boolean bool = this.a.p();
      Component localComponent = super.getTableCellRendererComponent(paramJTable, !bool ? paramObject : "", paramBoolean1, paramBoolean2, paramInt1, paramInt2);
      if (ec.t == 0)
      {
        if (!paramBoolean1) {
          localComponent.setBackground(!bool ? paramJTable.getBackground() : cd.z);
        }
        localComponent.setEnabled(this.a.o());
      }
      return localComponent;
    }
    
    protected void setValue(Object paramObject)
    {
      int i = ec.t;
      String str = a(paramObject);
      if (i == 0)
      {
        setText(str);
        if (str.trim().length() > 0)
        {
          if (i != 0) {
            break label45;
          }
          setToolTipText(str);
          if (!ec.s) {
            return;
          }
        }
      }
      label45:
      setToolTipText(null);
    }
    
    String a(Object paramObject)
    {
      int i = ec.t;
      if (i == 0) {
        if ((paramObject instanceof String)) {
          return (String)paramObject;
        }
      }
      Object localObject = this.a.k().c(cd.e);
      if (i == 0) {
        if ((localObject instanceof String)) {
          return (String)localObject;
        }
      }
      return (i != 0) || (paramObject != null) ? paramObject.toString() : "";
    }
    
    fb_(cd.0 param0)
    {
      this();
    }
  }
  
  public static final class r_
  {
    public static final r_ a = new r_(0);
    public static final r_ b = new r_(1);
    public static final r_ c = new r_(2);
    public static final r_ d = new r_(3);
    public static final r_ e = new r_(4);
    private final int f;
    public static int g;
    
    private r_(int paramInt)
    {
      this.f = paramInt;
    }
    
    private void a(ec paramec, JComponent paramJComponent, Window paramWindow)
    {
      int i = ec.t;
      boolean bool = ec.s;
      if (i == 0) {}
      switch (this.f)
      {
      case 0: 
        a(paramWindow);
        if (i == 0) {
          if (!bool) {
            return;
          }
        }
      case 1: 
        a(paramJComponent, paramWindow);
        if (i == 0) {
          if (!bool) {
            return;
          }
        }
      case 2: 
        paramWindow.setLocationRelativeTo(a(paramJComponent));
        if (i == 0) {
          if (!bool) {
            return;
          }
        }
      case 3: 
        b(paramec, paramJComponent, paramWindow);
        if (i == 0) {
          if (!bool) {
            return;
          }
        }
      case 4: 
        if (i == 0)
        {
          paramWindow.setLocationRelativeTo(paramJComponent);
          if (!bool) {
            return;
          }
        }
        break;
      }
      a(paramWindow);
    }
    
    private static void a(Window paramWindow)
    {
      int k = ec.t;
      Dimension localDimension1 = paramWindow.getSize();
      Dimension localDimension2 = Toolkit.getDefaultToolkit().getScreenSize();
      int i = localDimension2.width - localDimension1.width;
      if (k == 0) {}
      i = i > 0 ? i / 2 : 0;
      int j = localDimension2.height - localDimension1.height;
      if (k == 0) {}
      j = j > 0 ? j / 3 : 0;
      paramWindow.setLocation(i, j);
    }
    
    private static void a(JComponent paramJComponent, Window paramWindow)
    {
      if (paramJComponent == null)
      {
        if (ec.t != 0) {
          break label22;
        }
        paramWindow.setLocationRelativeTo(null);
        if (!ec.s) {
          return;
        }
      }
      label22:
      paramWindow.setLocationRelativeTo(SwingUtilities.getWindowAncestor(paramJComponent));
    }
    
    private static Component a(JComponent paramJComponent)
    {
      int i = ec.t;
      if ((i != 0) || ((paramJComponent instanceof JTable)))
      {
        TableModel localTableModel = ((JTable)paramJComponent).getModel();
        if ((i != 0) || ((localTableModel instanceof ce))) {
          return ((ce)localTableModel).a().f();
        }
      }
      return null;
    }
    
    private static void b(ec paramec, JComponent paramJComponent, Window paramWindow)
    {
      paramWindow.setLocationRelativeTo(a(paramec, paramJComponent));
    }
    
    static void c(ec paramec, JComponent paramJComponent, Window paramWindow)
    {
      c(paramec, paramJComponent).a(paramec, paramJComponent, paramWindow);
    }
    
    static Component a(ec paramec, JComponent paramJComponent1, JComponent paramJComponent2)
    {
      switch (c(paramec, paramJComponent1).f)
      {
      case 0: 
        return null;
      case 1: 
        if (ec.t == 0) {}
        return paramJComponent1 == null ? null : SwingUtilities.getWindowAncestor(paramJComponent1);
      case 2: 
        return paramJComponent2;
      case 3: 
        return a(paramec, paramJComponent1);
      case 4: 
        return paramJComponent1;
      }
      return paramJComponent2;
    }
    
    private static Component a(ec paramec, JComponent paramJComponent)
    {
      String str = cd.h;
      if (ec.t == 0) {}
      return (Component)a(paramec, paramJComponent, str, cd.G == null ? (cd.G = cd.a("java.awt.Component")) : cd.G, null);
    }
    
    private static r_ c(ec paramec, JComponent paramJComponent)
    {
      if (ec.t == 0) {}
      return (r_)a(paramec, paramJComponent, cd.g, cd.H == null ? (cd.H = cd.a("a.h.cd$r_")) : cd.H, b);
    }
    
    private static Object a(ec paramec, JComponent paramJComponent, String paramString, Class paramClass, Object paramObject)
    {
      int i = ec.t;
      Object localObject1 = paramec.c(paramString);
      if (i == 0)
      {
        if (paramClass.isInstance(localObject1)) {
          return localObject1;
        }
        if (i != 0) {}
      }
      else if ((paramJComponent instanceof JTable))
      {
        TableModel localTableModel = ((JTable)paramJComponent).getModel();
        if (i != 0) {
          break label161;
        }
        if ((localTableModel instanceof ce))
        {
          db localdb = ((ce)localTableModel).a();
          Map localMap = localdb.i();
          if ((i != 0) || (localMap != null))
          {
            localObject2 = localMap.get(paramString);
            if ((i != 0) || (paramClass.isInstance(localObject2))) {
              return localObject2;
            }
          }
          Object localObject2 = localdb.h();
          if (i != 0) {
            break label161;
          }
          if (localObject2 != null)
          {
            Object localObject3 = ((dc)localObject2).n(paramString);
            if (i != 0) {
              break label161;
            }
            if (paramClass.isInstance(localObject3)) {
              return localObject3;
            }
          }
        }
      }
      label161:
      return paramObject;
    }
  }
  
  public static class u_
  {
    Color a = null;
    Color b = null;
    Color c = null;
    Color d = null;
    Color e = null;
    Color f = null;
    Color g = null;
    Color h = null;
    Color i = null;
    Color j = null;
    public static boolean k;
    
    public Color a()
    {
      return this.a;
    }
    
    public void a(Color paramColor)
    {
      this.a = paramColor;
    }
    
    public Color b()
    {
      return this.b;
    }
    
    public void b(Color paramColor)
    {
      this.b = paramColor;
    }
    
    public Color c()
    {
      return this.c;
    }
    
    public void c(Color paramColor)
    {
      this.c = paramColor;
    }
    
    public Color d()
    {
      return this.d;
    }
    
    public void d(Color paramColor)
    {
      this.d = paramColor;
    }
    
    public Color e()
    {
      return this.e;
    }
    
    public void e(Color paramColor)
    {
      this.e = paramColor;
    }
    
    public Color f()
    {
      return this.f;
    }
    
    public void f(Color paramColor)
    {
      this.f = paramColor;
    }
    
    public Color g()
    {
      return this.g;
    }
    
    public void g(Color paramColor)
    {
      this.g = paramColor;
    }
    
    public Color h()
    {
      return this.h;
    }
    
    public void h(Color paramColor)
    {
      this.h = paramColor;
    }
    
    public Color i()
    {
      return this.i;
    }
    
    public void i(Color paramColor)
    {
      this.i = paramColor;
    }
    
    public Color j()
    {
      return this.j;
    }
    
    public void j(Color paramColor)
    {
      this.j = paramColor;
    }
  }
  
  public static final class s_
  {
    public static final s_ a = new s_();
    public static final s_ b = new s_();
    public static final s_ c = new s_();
    public static final s_ d = new s_();
    public static final s_ e = new s_();
    public static int f;
  }
  
  public static abstract interface t_
  {
    public abstract tb a();
    
    public abstract void a(tb paramtb);
  }
  
  private class z_
    extends cd.y_
  {
    private JLabel f = new xd();
    private cd.eb_ g = new cd.eb_();
    private boolean h = false;
    
    public z_()
    {
      super();
      this.g.f().addActionListener(new cd.6(this));
      this.g.d().addActionListener(new cd.7(this, cd.this));
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      this.e = new WeakReference(paramJTable);
      this.h = false;
      if (i == 0)
      {
        if ((!(paramObject instanceof String)) && (paramObject != null)) {
          break label243;
        }
        if (i != 0) {
          break label61;
        }
      }
      label61:
      String str = this.c.p() ? "" : b(paramObject);
      if (i == 0)
      {
        if (d(paramObject))
        {
          this.f.setFont(paramJTable.getFont());
          this.f.setBackground(paramJTable.getBackground());
          paramJTable.repaint(paramJTable.getCellRect(paramInt1, paramInt2, false));
          this.f.setText(str);
          this.h = true;
          SwingUtilities.invokeLater(new cd.8(this));
          return this.f;
        }
        this.g.d().setText(str);
        if (i != 0) {}
      }
      else
      {
        if (f())
        {
          if (i != 0) {
            break label218;
          }
          if (this.g.d().isEditable()) {
            this.g.d().selectAll();
          }
        }
        this.g.d().setFont(paramJTable.getFont());
        label218:
        this.g.d().setBackground(paramJTable.getBackground());
        paramJTable.repaint(paramJTable.getCellRect(paramInt1, paramInt2, false));
      }
      return this.g;
      label243:
      this.f.setText(b(paramObject));
      this.f.setFont(paramJTable.getFont());
      this.f.setBackground(paramJTable.getBackground());
      paramJTable.repaint(paramJTable.getCellRect(paramInt1, paramInt2, false));
      return this.f;
    }
    
    private boolean d(Object paramObject)
    {
      int i = ec.t;
      if ((i != 0) || (paramObject != null))
      {
        if (i != 0) {
          break label34;
        }
        if ((paramObject instanceof String)) {}
      }
      else
      {
        return false;
      }
      label34:
      if (i == 0) {}
      return ((String)paramObject).indexOf('\n') >= 0;
    }
    
    void a(Object paramObject)
    {
      super.a(paramObject);
      this.g.d().setText(b(paramObject));
    }
    
    public boolean stopCellEditing()
    {
      int i = ec.t;
      this.c.a(this.d);
      if (i == 0) {
        if (!this.h)
        {
          String str = this.g.d().getText();
          if (i == 0) {
            if (c(str))
            {
              this.d = str;
              if (i != 0) {
                break label72;
              }
              if (!ec.s) {
                break label68;
              }
            }
          }
          return false;
        }
      }
      label68:
      label72:
      return g();
    }
    
    public void a(tb paramtb)
    {
      if (ec.t == 0)
      {
        super.a(paramtb);
        if (!paramtb.p()) {}
      }
      else
      {
        this.d = "";
      }
    }
    
    public Object getCellEditorValue()
    {
      if (ec.t == 0) {
        if (this.h) {
          return this.d;
        }
      }
      return this.g.d().getText();
    }
    
    private boolean f()
    {
      ec localec = this.c.k();
      if (localec == null) {
        return false;
      }
      return Boolean.TRUE.equals(localec.c("ItemEditor.selectTextOnFocusGained"));
    }
  }
  
  private class y_
    extends AbstractCellEditor
    implements TableCellEditor, cd.t_
  {
    private JPanel a;
    private JLabel b = new xd();
    protected tb c;
    protected Object d;
    WeakReference e;
    
    public y_()
    {
      JButton localJButton = b();
      this.a = new JPanel(new BorderLayout());
      this.a.setOpaque(false);
      this.a.add(this.b, "Center");
      this.a.add(localJButton, "East");
      this.a.addFocusListener(new cd.0(this, localJButton));
    }
    
    protected JButton b()
    {
      JButton localJButton = new JButton("...");
      localJButton.setMargin(new Insets(0, 0, 0, 0));
      localJButton.setPreferredSize(new Dimension(localJButton.getPreferredSize().width, this.b.getPreferredSize().height));
      localJButton.addActionListener(new cd.3(this));
      return localJButton;
    }
    
    protected void c()
    {
      int i = ec.t;
      boolean bool = ec.s;
      ec localec = a().k();
      String str = nb.a(localec);
      JTable localJTable = (JTable)this.e.get();
      Frame localFrame = JOptionPane.getFrameForComponent(localJTable);
      JDialog localJDialog = new JDialog(localFrame, a(str, localec.d()), true);
      ub localub = cd.this.e();
      HashMap localHashMap = new HashMap(1);
      localHashMap.put(cd.i, Boolean.TRUE);
      tb localtb = localub.a(localec, localHashMap);
      cd.4 local4 = new cd.4(this, localtb, localJDialog);
      cd.5 local5 = new cd.5(this, localJDialog);
      JButton localJButton1 = d().a("OK_ACTION.NAME");
      localJButton1.addActionListener(local4);
      JButton localJButton2 = d().a("CANCEL_ACTION.NAME");
      localJButton2.addActionListener(local5);
      localJDialog.getRootPane().setDefaultButton(localJButton1);
      localJDialog.getRootPane().registerKeyboardAction(local5, "CANCEL_ACTION.NAME", KeyStroke.getKeyStroke(27, 0), 1);
      localJDialog.getRootPane().registerKeyboardAction(local4, "OK_ACTION.NAME", KeyStroke.getKeyStroke(10, 0), 1);
      localJDialog.getRootPane().registerKeyboardAction(local4, "OK_ACTION.NAME", KeyStroke.getKeyStroke(10, 2), 1);
      JPanel localJPanel1 = new JPanel(new GridLayout(1, 2, 11, 0));
      localJPanel1.add(localJButton1);
      localJPanel1.add(localJButton2);
      JPanel localJPanel2 = new JPanel(new GridBagLayout());
      localJPanel2.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));
      GridBagConstraints localGridBagConstraints = new GridBagConstraints();
      localGridBagConstraints.gridx = 0;
      localGridBagConstraints.weightx = 1.0D;
      localGridBagConstraints.anchor = 23;
      localGridBagConstraints.gridy = 0;
      localGridBagConstraints.insets = new Insets(0, 1, 0, 0);
      localGridBagConstraints.fill = 0;
      localGridBagConstraints.weighty = 0.0D;
      localJPanel2.add(new JLabel(a(str, localec.d())), localGridBagConstraints);
      localGridBagConstraints.gridy += 1;
      localGridBagConstraints.insets = new Insets(6, 1, 0, 0);
      localGridBagConstraints.fill = 1;
      localGridBagConstraints.weighty = 1.0D;
      JComponent localJComponent = localtb.f();
      localJPanel2.add(localJComponent, localGridBagConstraints);
      localGridBagConstraints.gridy += 1;
      localGridBagConstraints.insets = new Insets(17, 0, 0, 0);
      localGridBagConstraints.fill = 0;
      localGridBagConstraints.weighty = 0.0D;
      localJPanel2.add(localJPanel1, localGridBagConstraints);
      localJDialog.setContentPane(localJPanel2);
      localJDialog.pack();
      cd.r_.c(localec, localJTable, localJDialog);
      localJDialog.setVisible(true);
      localJButton1.requestFocus();
      if ((i != 0) || (q.n))
      {
        if (i == 0) {}
        ec.s = !bool;
      }
      if (q.o)
      {
        i++;
        ec.t = i;
      }
    }
    
    void a(Object paramObject)
    {
      this.d = paramObject;
    }
    
    public tb a()
    {
      return this.c;
    }
    
    public void a(tb paramtb)
    {
      this.c = paramtb;
      this.d = paramtb.n();
    }
    
    public Object getCellEditorValue()
    {
      return this.d;
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      this.e = new WeakReference(paramJTable);
      this.b.setFont(paramJTable.getFont());
      this.b.setText(b(paramObject));
      this.b.setBackground(paramJTable.getBackground());
      paramJTable.repaint(paramJTable.getCellRect(paramInt1, paramInt2, false));
      return this.a;
    }
    
    protected String b(Object paramObject)
    {
      int i = ec.t;
      if (i == 0) {
        if ((paramObject instanceof String)) {
          return (String)paramObject;
        }
      }
      Object localObject = this.c.k().c(cd.e);
      if (i == 0) {
        if ((localObject instanceof String)) {
          return (String)localObject;
        }
      }
      return (i != 0) || (paramObject != null) ? paramObject.toString() : "";
    }
    
    protected boolean c(Object paramObject)
    {
      int i = ec.t;
      ec localec = a().k();
      Object localObject = localec.c("TableEditor.valueFilter");
      if (i == 0) {
        if ((localObject instanceof u)) {
          if (i != 0) {
            break label53;
          }
        }
      }
      label53:
      return ((u)localObject).a(paramObject);
    }
    
    private String a(String paramString1, String paramString2)
    {
      int i = ec.t;
      ob localob = d();
      String str = (i != 0) || (localob != null) ? localob.b(paramString1) : paramString1;
      if (i == 0) {}
      return str.equals(paramString1) ? paramString2 : str;
    }
    
    private ob d()
    {
      int i = ec.t;
      ob localob = cd.this.a();
      if (i == 0) {
        if (localob == null) {
          localob = dc.c();
        }
      }
      if (i == 0) {
        if (localob == null)
        {
          c localc = new c();
          localc.a(true);
          return localc;
        }
      }
      return localob;
    }
    
    private void e()
    {
      int i = ec.t;
      JTable localJTable = (JTable)this.e.get();
      if (((i != 0) || (localJTable != null)) && ((i != 0) || (!localJTable.hasFocus()))) {
        localJTable.requestFocus();
      }
    }
    
    public boolean stopCellEditing()
    {
      this.c.a(this.d);
      return g();
    }
    
    boolean g()
    {
      e();
      return super.stopCellEditing();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.cd

 * JD-Core Version:    0.7.0.1

 */